package com.stylefeng.guns.modular.flagglory.service.impl;

import com.stylefeng.guns.common.persistence.model.Season;
import com.stylefeng.guns.common.persistence.model.UserRate;
import com.stylefeng.guns.common.persistence.dao.UserRateMapper;
import com.stylefeng.guns.modular.flagglory.dao.UserRateDao;
import com.stylefeng.guns.modular.flagglory.service.ISeasonService;
import com.stylefeng.guns.modular.flagglory.service.IUserRateService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * lg_用户分类胜率 服务实现类
 * </p>
 *
 * @author stylefeng123
 * @since 2018-02-06
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class UserRateServiceImpl extends ServiceImpl<UserRateMapper, UserRate> implements IUserRateService {
    @Autowired
    private UserRateDao userRateDao;
    public List<Map<String,Object>> selectUserRatesByUserId(Integer userId,Integer seasonId){
        return userRateDao.selectUserRatesByUserId(userId,seasonId);
    }
}
